import request from '@/utils/request'

const {
    get: $get,
    post: $post,
    delete: $delete,
    download: $download
} = request

// 查询平台满意度全部
export const publicPlatformSatisfiedList = data => {
    return $get('/risk/publicPlatformSatisfied/list', data)
}

// 查询平台满意度列表
export const publicPlatformSatisfiedPage = data => {
    return $get('/risk/publicPlatformSatisfied/page', data)
}

// 新增平台满意度
export const publicPlatformSatisfiedAdd = data => {
    return $post('/risk/publicPlatformSatisfied/add', data)
}

// 查询平台满意度详情
export const publicPlatformSatisfiedDetail = id => {
    return $get('/risk/publicPlatformSatisfied/detail/'+ id)
}

// 更新平台满意度
export const publicPlatformSatisfiedUpdate = data => {
    return $post('/risk/publicPlatformSatisfied/update', data)
}

// 删除平台满意度
export const publicPlatformSatisfiedDelete = id => {
    return $post('/risk/publicPlatformSatisfied/delete/'+ id)
}

// 导出平台满意度
export const publicPlatformSatisfiedExport = (data,fileName) => {
    return $download('/risk/publicPlatformSatisfied/export',data, fileName)
}
